package com.pm.quartz.task;

import com.pm.common.WechatService;
import com.pm.common.utils.DateUtils;
import com.pm.project.service.ProjectListService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Date;

/**
 * 同步企业微信用户ID
 *
 * @author ruoyi
 */
@Component("companyWechatUserTask")
public class CompanyWechatUserTask
{
    Logger logger = LoggerFactory.getLogger(CompanyWechatUserTask.class);

    @Resource
    WechatService wechatService;

    public void run()
    {
        logger.info("同步企业微信用户ID定时任务开始:"+ DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS,new Date()));
        wechatService.sysCompanyWechatId();
        logger.info("同步企业微信用户ID定时任务结束:"+DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD_HH_MM_SS,new Date()));

    }
}
